/**
 * Generate time : 2011-11-16 6:10:13
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLRiskHandle table comment : 安全隐患处理记录
 */
public class ZMCLRiskHandle extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdRiskRecordId = " "; /* 隐患记录ID */
	private String fdNorientationId = " "; /* 通知书ID */
	private String fdIsPenalty = " "; /* 是否罚款 */
	private String fdPenaltyId = " "; /* 罚款单ID */
	private Double fdPenalty = new Double(0); /* 罚款金额 */
	private String fdStatus = " "; /* 处理状态 */
	private String fdSuggestion = " "; /* 处理意见 */
	private String fdHandleDate = " "; /* 处理日期 */
	private String fdHandlePeopleId = " "; /* 处理人ID */
	private String fdHandlePeople = " "; /* 处理人 */
	private String fdCreateTime = " "; /* 创建时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNorientationId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("通知书ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsPenalty");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("是否罚款");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPenaltyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("罚款单ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPenalty");
		eiColumn.setType("N");
		eiColumn.setScaleLength(2);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("罚款金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("处理状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSuggestion");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("处理意见");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdHandleDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("处理日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdHandlePeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("处理人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdHandlePeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("处理人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLRiskHandle() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdRiskRecordId - 隐患记录ID
	 * 
	 * @return the fdRiskRecordId
	 */
	public String getFdRiskRecordId() {
		return this.fdRiskRecordId;
	}

	/**
	 * set the fdRiskRecordId - 隐患记录ID
	 */
	public void setFdRiskRecordId(String fdRiskRecordId) {
		this.fdRiskRecordId = fdRiskRecordId;
	}

	/**
	 * get the fdNorientationId - 通知书ID
	 * 
	 * @return the fdNorientationId
	 */
	public String getFdNorientationId() {
		return this.fdNorientationId;
	}

	/**
	 * set the fdNorientationId - 通知书ID
	 */
	public void setFdNorientationId(String fdNorientationId) {
		this.fdNorientationId = fdNorientationId;
	}

	/**
	 * get the fdIsPenalty - 是否罚款
	 * 
	 * @return the fdIsPenalty
	 */
	public String getFdIsPenalty() {
		return this.fdIsPenalty;
	}

	/**
	 * set the fdIsPenalty - 是否罚款
	 */
	public void setFdIsPenalty(String fdIsPenalty) {
		this.fdIsPenalty = fdIsPenalty;
	}

	/**
	 * get the fdPenaltyId - 罚款单ID
	 * 
	 * @return the fdPenaltyId
	 */
	public String getFdPenaltyId() {
		return this.fdPenaltyId;
	}

	/**
	 * set the fdPenaltyId - 罚款单ID
	 */
	public void setFdPenaltyId(String fdPenaltyId) {
		this.fdPenaltyId = fdPenaltyId;
	}

	/**
	 * get the fdPenalty - 罚款金额
	 * 
	 * @return the fdPenalty
	 */
	public Double getFdPenalty() {
		return this.fdPenalty;
	}

	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(Double fdPenalty) {
		this.fdPenalty = fdPenalty;
	}

	/**
	 * get the fdStatus - 处理状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 处理状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdSuggestion - 处理意见
	 * 
	 * @return the fdSuggestion
	 */
	public String getFdSuggestion() {
		return this.fdSuggestion;
	}

	/**
	 * set the fdSuggestion - 处理意见
	 */
	public void setFdSuggestion(String fdSuggestion) {
		this.fdSuggestion = fdSuggestion;
	}

	/**
	 * get the fdHandleDate - 处理日期
	 * 
	 * @return the fdHandleDate
	 */
	public String getFdHandleDate() {
		return this.fdHandleDate;
	}

	/**
	 * set the fdHandleDate - 处理日期
	 */
	public void setFdHandleDate(String fdHandleDate) {
		this.fdHandleDate = fdHandleDate;
	}

	/**
	 * get the fdHandlePeopleId - 处理人ID
	 * 
	 * @return the fdHandlePeopleId
	 */
	public String getFdHandlePeopleId() {
		return this.fdHandlePeopleId;
	}

	/**
	 * set the fdHandlePeopleId - 处理人ID
	 */
	public void setFdHandlePeopleId(String fdHandlePeopleId) {
		this.fdHandlePeopleId = fdHandlePeopleId;
	}

	/**
	 * get the fdHandlePeople - 处理人
	 * 
	 * @return the fdHandlePeople
	 */
	public String getFdHandlePeople() {
		return this.fdHandlePeople;
	}

	/**
	 * set the fdHandlePeople - 处理人
	 */
	public void setFdHandlePeople(String fdHandlePeople) {
		this.fdHandlePeople = fdHandlePeople;
	}

	/**
	 * get the fdCreateTime - 创建时间
	 * 
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}

	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRiskRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskRecordId")), fdRiskRecordId));
		setFdNorientationId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNorientationId")), fdNorientationId));
		setFdIsPenalty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPenalty")), fdIsPenalty));
		setFdPenaltyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPenaltyId")), fdPenaltyId));
		setFdPenalty(NumberUtils.toDouble(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSuggestion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSuggestion")), fdSuggestion));
		setFdHandleDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandleDate")), fdHandleDate));
		setFdHandlePeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandlePeopleId")), fdHandlePeopleId));
		setFdHandlePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandlePeople")), fdHandlePeople));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdRiskRecordId", StringUtils.toString(fdRiskRecordId, eiMetadata.getMeta("fdRiskRecordId")));
		map.put("fdNorientationId", StringUtils.toString(fdNorientationId, eiMetadata.getMeta("fdNorientationId")));
		map.put("fdIsPenalty", StringUtils.toString(fdIsPenalty, eiMetadata.getMeta("fdIsPenalty")));
		map.put("fdPenaltyId", StringUtils.toString(fdPenaltyId, eiMetadata.getMeta("fdPenaltyId")));
		map.put("fdPenalty", StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdSuggestion", StringUtils.toString(fdSuggestion, eiMetadata.getMeta("fdSuggestion")));
		map.put("fdHandleDate", StringUtils.toString(fdHandleDate, eiMetadata.getMeta("fdHandleDate")));
		map.put("fdHandlePeopleId", StringUtils.toString(fdHandlePeopleId, eiMetadata.getMeta("fdHandlePeopleId")));
		map.put("fdHandlePeople", StringUtils.toString(fdHandlePeople, eiMetadata.getMeta("fdHandlePeople")));
		map.put("fdCreateTime", StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));

		return map;

	}
}